﻿<visi:VisiPage x:Class="VNet.VisiSuite.VisiBoard.Views.ProductionView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:visi="clr-namespace:VNet.VisiSuite.VisiBoard.Controls"
        xmlns:ig="http://schemas.infragistics.com/xaml"
        mc:Ignorable="d" d:DesignHeight="600" d:DesignWidth="800" Loaded="VisiPage_Loaded"
        xmlns:vm="clr-namespace:VNet.VisiSuite.VisiBoard.ViewModels" DataContext="{DynamicResource ProductionViewModel}" 
        xmlns:c="clr-namespace:VNet.VisiSuite.VisiBoard.Controls" 
        xmlns:helper="clr-namespace:VNet.VisiSuite.VisiBoard.Common.Helpers"
        xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
        xmlns:controls="clr-namespace:WpfKb.Controls;assembly=WpfKb"
        xmlns:vuc="clr-namespace:VNet.VisiSuite.Controls;assembly=VNet.VisiSuite.Controls"
        xmlns:xxx="VNet.VisiSuite.VisiBoard.Views.ProductionView"
        Background= "{Binding HeaderBrush, Mode=OneWay}" >
    
    <visi:VisiPage.Resources>
        <vm:ProductionViewModel x:Key="ProductionViewModel"/>
    </visi:VisiPage.Resources>
    
    <vuc:BusyIndicator IsBusy="{Binding IsBusy}">
        <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Background="{StaticResource WhiteColor}" Focusable="False" Margin="10,0,10,10">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
                <RowDefinition Height="42" />
            </Grid.RowDefinitions>
            
            <!--Header-->
            <c:Header2Control Grid.Row="0" TextBrush="{Binding HeaderTextBrush, Mode=OneWay}" Title="{Binding PageTitle}" Background="{Binding HeaderBrush, Mode=OneWay}" />

            <!--Body-->
            <Grid Grid.Row="1">

                <Grid.RowDefinitions>
                    <RowDefinition Height="50" />
                    <RowDefinition Height="*" />
                    <RowDefinition Height="50" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="12" />
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="12" />
                </Grid.ColumnDefinitions>

                <vuc:ToolbarControl x:Name="_tasks_toolbar" Title="{Binding TasksTitle, Mode=OneWay}" LeftTiles="{Binding TasksLeft, Mode=OneWay}" RightTiles="{Binding TasksRight, Mode=OneWay}" Margin="0" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" />

                <vuc:ProductionControl x:Name="_production" Margin="0" Grid.Row="1" Grid.Column="1" />

                <vuc:ToolbarControl x:Name="_info_toolbar" Margin="0" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" />
            </Grid>
            
            <!--Footer-->
            <ContentControl Grid.Row="2" Template="{StaticResource FooterTemplate}" />
        </Grid>
    </vuc:BusyIndicator>
</visi:VisiPage>
